<?php
$template_dir = get_template_directory_uri();
$upload_dir = wp_upload_dir(); 
define( 'IPOST_THEME_PATH', dirname(__FILE__) );
define( 'IPOST_FRAMEWORK_PATH', dirname(__FILE__) . '/core/' );
define( 'IPOST_FRAMEWORK_URL', $template_dir . '/frameworks/' );
define( 'IPOST_UPLOAD_HANDLER_URL', $template_dir . '/frameworks/upload/' );
// paths
define( 'IPOST_THEME_UPLOAD_DIR', $upload_dir['basedir'] . '/' );
define( 'IPOST_THEME_UPLOAD_HANDLER',IPOST_THEME_PATH . '\\upload\\' );
define( 'IPOST_THEME_IMG_DIR', 	 IPOST_THEME_PATH . '\\images\\' );
define( 'IPOST_THEME_I18N_DIR',  IPOST_THEME_PATH . '\\languages\\' );
define( 'IPOST_THEME_FUNC_DIR',  IPOST_THEME_PATH . '\\inc\\' );

// url
define( 'IPOST_THEME_CSS_URL', 	IPOST_FRAMEWORK_URL . 'css/' );
define( 'IPOST_THEME_JS_URL', 	IPOST_FRAMEWORK_URL . 'js/' );
define( 'IPOST_THEME_JS_UPLOADER_URL', 	IPOST_FRAMEWORK_URL . 'js/fileuploader/' );
define( 'IPOST_THEME_IMG_URL', 	IPOST_FRAMEWORK_URL . 'images/' );
define( 'IPOST_THEME_ICON_URL',	IPOST_FRAMEWORK_URL . 'images/icons' );
define( 'IPOST_THEME_I18N_URL', IPOST_FRAMEWORK_URL . 'languages/' );
define( 'IPOST_THEME_FUNC_URL', IPOST_FRAMEWORK_URL . 'inc/' );

//For options name
define( 'IPS_ADMIN_OPTIONS_NAME', 'options_list_name' );
// include all framework
require_once IPOST_FRAMEWORK_PATH . 'theme-options.php';
require_once IPOST_FRAMEWORK_PATH . 'functions-core.php';
require_once IPOST_FRAMEWORK_PATH . 'functions-admin.php';
require_once IPOST_FRAMEWORK_PATH . 'settings-core.php';

?>
